package main

//清洗操作只能完成首尾的空格或者指定字符的替换，要完成更为复杂的操作则要调用NewReplacer()函数
import (
	"fmt"
	"strings"
)

func main() {
	var str1 string = "www.cnblogs.com/liuqingzheng/p/15996060.html"
	newReplacer1 := strings.NewReplacer("/", ":")
	fmt.Println(newReplacer1.Replace(str1)) //www.cnblogs.com:liuqingzheng:p:15996060.html
}
